package cn.fanqinghong.org.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.fanqinghong.basic.domain.Base;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author fanqinghong
 * @since 2022-06-12
 */
@Data
public class Shop extends Base{

    private static final long serialVersionUID = 1L;

    @Excel(name = "店铺名字" ,orderNum = "1", width = 30, isImportField = "true_st")
    private String name;
    @Excel(name="联系电话",orderNum = "2",width = 30, isImportField = "true_st")
    private String tel;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @Excel(name="审核时间",orderNum = "3",width = 30,isImportField = "true_st",exportFormat="yyyy-MM-dd")
    private Date registerTime = new Date();
    /**
     * 店铺状态：0待审核，1已审核，-1驳回，2待激活
     */
    @Excel(name="审核状态",orderNum = "4",width = 30,isImportField = "true_st",replace = {"待审核_0","已审核_1","驳回_-1","待激活_2"})
    private Integer state = 0;
    @Excel(name="店铺地址",orderNum = "5",width = 30,isImportField = "true_st")
    private String address;
    @Excel(name="店招",orderNum = "6",width = 30,isImportField = "true_st")
    private String logo;

    private Long adminId;

    private Employee admin;

    List<ShopAuditLog> auditLogs;
}
